x86: also show FS/GS base addresses when dumping registers
authorJan Beulich <jbeulich@suse.com>
Tue, 24 Oct 2017 16:13:13 +0000 (18:13 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 24 Oct 2017 16:13:13 +0000 (18:13 +0200)
commitbe7f60b5a39741eab0a8fea0324f7be0cb724cfb
treea5abd37c873ad82c3b896a16a2f0205928c1da00
parent91f85280b9b80852352fcad73d94ed29fafb88da
x86: also show FS/GS base addresses when dumping registers

Their state may be important to figure the reason for a crash. To not
further grow duplicate code, break out a helper function.

I realize that (ab)using the control register array here may not be
considered the nicest solution, but it seems easier (and less overall
overhead) to do so compared to the alternative of introducing another
helper structure.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Julien Grall <julien.grall@linaro.org>
xen/arch/x86/x86_64/traps.c